﻿using System;

namespace DesignPattern.com.state.scene {
    public class StartState :SceneState{
        public StartState(SceneController sc) : base(sc){
            StateName = "startState";
            
        }

        public override void stateBegin(){
            Console.WriteLine("==StartState-stateBegin()");
            
            Console.WriteLine("加载资源 load resources...");
        }

        public override void stateUpdate(){
            Console.WriteLine("==StartState-stateUpdate() 状态切换为menuState");
            sc.setState(new MenuState(sc),"menuState" );
        }
    }
}